package com.jie.server.modules.monitor.conreoller;


import com.jie.common.result.R;
import com.jie.server.modules.monitor.entity.ServerEntity;
import io.swagger.annotations.Api;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 服务器监控 前端控制层
 * @author: xiaojie
 * @since: 2024/12/16 0016
 */
@Api(tags = "服务器监控")
@RestController
@RequestMapping("/monitor/server")
public class ServerController {

    @PreAuthorize("@customSs.hasPermi('monitor:server:list')")
    @GetMapping()
    public R getInfo() throws Exception {
        ServerEntity server = new ServerEntity();
        server.setServeInfo();
        return R.ok(server);
    }

}
